const TOKEN_KEY = 'token'

/**
 * 获取token
 */
function getToken() {
  return localStorage.getItem(TOKEN_KEY)
}

/**
 * 设置token
 *
 * @param token
 */
function setToken(token) {
  localStorage.setItem(TOKEN_KEY, token)
}

/**
 * 删除token
 */
function removeToken() {
  localStorage.removeItem(TOKEN_KEY)
}

export { getToken, setToken, removeToken }
